from logging import info
from flask import Flask

server = Flask('APP')

data = {
    "name"： "王博",
    "sex"：0,
    "intro": "i'm a freshman",
    "about": "是个逗比"
}

@server.route('/')
def index():
    return "hello Flask"


@server.route('/info')
def get_info():
    return data


server.run('127.0.0.1', port=8080)


http://127.0.0.1:8080/info



